package com.leyuangame.core.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


@Entity
@Table(name = "bm_game")
@org.hibernate.annotations.Proxy(lazy = false)
public class Game implements Serializable{
    @Id
    public String id;
    public String categoryd;
    public String gamename;
    public int startnumber;
    public String createuser;
    public int isopen;
    public Date createtime;
    public int sort;

    public void setId(String id) {
        this.id = id;
    }

    public String getCategoryd() {
        return categoryd;
    }

    public void setCategoryd(String categoryd) {
        this.categoryd = categoryd;
    }

    public String getGamename() {
        return gamename;
    }

    public void setGamename(String gamename) {
        this.gamename = gamename;
    }

    public int getStartnumber() {
        return startnumber;
    }

    public void setStartnumber(int startnumber) {
        this.startnumber = startnumber;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public int getIsopen() {
        return isopen;
    }

    public void setIsopen(int isopen) {
        this.isopen = isopen;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @Id
    @Column(length = 32)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    public String getId() {
        return id;
    }
}
